package com.jinghui.xiaoyuanliao.ui.other;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jinghui.xiaoyuanliao.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class OtherFragment extends Fragment {

    private static OtherFragment otherFragment;
    public OtherFragment() {
        // Required empty public constructor
    }
    public static OtherFragment setOtherFragment(){
        if (otherFragment == null)
            synchronized (OtherFragment.class){
                if (otherFragment == null){
                    otherFragment = new OtherFragment();
                }
            }
        return otherFragment;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_other, container, false);
    }

}
